import request from '@/utils/request'

// 查询班级排课规则列表
export function listScheduleRoles(query) {
  return request({
    url: '/edu/scheduleRoles/list',
    method: 'get',
    params: query
  })
}

// 查询班级排课规则详细
export function getScheduleRoles(relaId) {
  return request({
    url: '/edu/scheduleRoles/' + relaId,
    method: 'get'
  })
}

// 新增班级排课规则
export function addScheduleRoles(data) {
  return request({
    url: '/edu/scheduleRoles',
    method: 'post',
    data: data
  })
}

// 修改班级排课规则
export function updateScheduleRoles(data) {
  return request({
    url: '/edu/scheduleRoles',
    method: 'put',
    data: data
  })
}

// 删除班级排课规则
export function delScheduleRoles(relaId) {
  return request({
    url: '/edu/scheduleRoles/' + relaId,
    method: 'delete'
  })
}

// 导出班级排课规则
export function exportScheduleRoles(query) {
  return request({
    url: '/edu/scheduleRoles/export',
    method: 'get',
    params: query
  })
}